<template>
  <div class="container">
    <nav class="navbar">
      <router-link class="navbar-logo" to="/home">Blue's Blog</router-link>
      <ul class="navbar-menu">
        <li>
          <router-link to="/home">首页</router-link>
        </li>
        <li>
          <router-link to="/contact">联系</router-link>
        </li>
        <li>
          <router-link to="/about">关于</router-link>
        </li>
      </ul>
      <div>
        显示头像和名称
      </div>
    </nav>
    <main>
      <router-view></router-view>
      <aside>侧边栏</aside>
    </main>
    <footer>页脚</footer>
  </div>
</template>

<script>
export default {
  name: "Index",
}
</script>

<style lang="scss" scoped>
.container {

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    padding: 16px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    .navbar-logo {
      font-size: 2rem;
      font-weight: bold;
      color: #fff;
      letter-spacing: 2px;
    }

    .navbar-menu {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .navbar-menu li {
      margin-left: 32px;
    }

    .navbar-menu a {
      color: #fff;
      font-size: 1.1rem;
      text-decoration: none;
      transition: color 0.2s;
    }

    .navbar-menu a:hover {
      color: #ffd700;
    }
  }

  main {
    display: flex;
    align-content: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 0 20px;

    aside {
      width: 200px;
      margin-left: 50px;
      background-color: lightpink;
    }
  }

  footer {
    height: 100px;
    background-color: gold;
  }
}
</style>
